﻿using System;
using Dos.ORM;

/// <summary>
/// 法务信息表
/// </summary>
[Table("temple_rally")]
[Serializable]
public partial class temple_rally : Entity
{
    #region Model
    private int _ID;
    private int _Year;
    private string _Name;
    private DateTime _StartTime;
    private DateTime _EndTime;
    private DateTime _AddTime;
    private bool _IsDel;
    private int _SortID;

    /// <summary>
    /// 
    /// </summary>
    [Field("ID")]
    public int ID
    {
        get { return _ID; }
        set
        {
            this.OnPropertyValueChange("ID");
            this._ID = value;
        }
    }
    /// <summary>
    /// 
    /// </summary>
    [Field("Year")]
    public int Year
    {
        get { return _Year; }
        set
        {
            this.OnPropertyValueChange("Year");
            this._Year = value;
        }
    }
    /// <summary>
    /// 
    /// </summary>
    [Field("Name")]
    public string Name
    {
        get { return _Name; }
        set
        {
            this.OnPropertyValueChange("Name");
            this._Name = value;
        }
    }
    /// <summary>
    /// 
    /// </summary>
    [Field("StartTime")]
    public DateTime StartTime
    {
        get { return _StartTime; }
        set
        {
            this.OnPropertyValueChange("StartTime");
            this._StartTime = value;
        }
    }
    /// <summary>
    /// 
    /// </summary>
    [Field("EndTime")]
    public DateTime EndTime
    {
        get { return _EndTime; }
        set
        {
            this.OnPropertyValueChange("EndTime");
            this._EndTime = value;
        }
    }
    /// <summary>
    /// 
    /// </summary>
    [Field("AddTime")]
    public DateTime AddTime
    {
        get { return _AddTime; }
        set
        {
            this.OnPropertyValueChange("AddTime");
            this._AddTime = value;
        }
    }
    /// <summary>
    /// 
    /// </summary>
    [Field("IsDel")]
    public bool IsDel
    {
        get { return _IsDel; }
        set
        {
            this.OnPropertyValueChange("IsDel");
            this._IsDel = value;
        }
    }
    /// <summary>
    /// 
    /// </summary>
    [Field("SortID")]
    public int SortID
    {
        get { return _SortID; }
        set
        {
            this.OnPropertyValueChange("SortID");
            this._SortID = value;
        }
    }
    #endregion

    #region Method
    /// <summary>
    /// 获取实体中的主键列
    /// </summary>
    public override Field[] GetPrimaryKeyFields()
    {
        return new Field[] {
                _.ID,
            };
    }
    /// <summary>
    /// 获取实体中的标识列
    /// </summary>
    public override Field GetIdentityField()
    {
        return _.ID;
    }
    /// <summary>
    /// 获取列信息
    /// </summary>
    public override Field[] GetFields()
    {
        return new Field[] {
                _.ID,
                _.Year,
                _.Name,
                _.StartTime,
                _.EndTime,
                _.AddTime,
                _.IsDel,
                _.SortID,
            };
    }
    /// <summary>
    /// 获取值信息
    /// </summary>
    public override object[] GetValues()
    {
        return new object[] {
                this._ID,
                this._Year,
                this._Name,
                this._StartTime,
                this._EndTime,
                this._AddTime,
                this._IsDel,
                this._SortID,
            };
    }
    /// <summary>
    /// 是否是v1.10.5.6及以上版本实体。
    /// </summary>
    /// <returns></returns>
    public override bool V1_10_5_6_Plus()
    {
        return true;
    }
    #endregion

    #region _Field
    /// <summary>
    /// 字段信息
    /// </summary>
    public class _
    {
        /// <summary>
        /// * 
        /// </summary>
        public readonly static Field All = new Field("*", "temple_rally");
        /// <summary>
        /// 
        /// </summary>
        public readonly static Field ID = new Field("ID", "temple_rally", "");
        /// <summary>
        /// 
        /// </summary>
        public readonly static Field Year = new Field("Year", "temple_rally", "");
        /// <summary>
        /// 
        /// </summary>
        public readonly static Field Name = new Field("Name", "temple_rally", "");
        /// <summary>
        /// 
        /// </summary>
        public readonly static Field StartTime = new Field("StartTime", "temple_rally", "");
        /// <summary>
        /// 
        /// </summary>
        public readonly static Field EndTime = new Field("EndTime", "temple_rally", "");
        /// <summary>
        /// 
        /// </summary>
        public readonly static Field AddTime = new Field("AddTime", "temple_rally", "");
        /// <summary>
        /// 
        /// </summary>
        public readonly static Field IsDel = new Field("IsDel", "temple_rally", "");
        /// <summary>
        /// 
        /// </summary>
        public readonly static Field SortID = new Field("SortID", "temple_rally", "");
    }
    #endregion
}